/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Presentation;

import Business.BusinessDelegate;
import DataAccess.entity.Criteria;
import DataAccess.entity.Property;
import Presentation.Model.ListTableModel;
import java.sql.ResultSet;
import java.util.ArrayList;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Domenico
 */

public class FrontController {
   

    public static void StampaFattura() {
        BusinessDelegate.stampaFattura();
    }

    public static void inizializza() {
        try {
            // Set cross-platform Java L&F (also called "Metal")
        UIManager.setLookAndFeel(
            UIManager.getSystemLookAndFeelClassName());
    } 
    catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
       // handle exception
    }
        new MainForm();
    }

    public static void StampaOrdineFornitore() {
        BusinessDelegate.stampaOrdineFornitore();
    }
    public static void stampaClienteFornitore(int intValue) {
        BusinessDelegate.ottieniHTMLClienteFornitore(intValue);
        BusinessDelegate.stampaClienteFornitore();
    }
    public static void InviaMail() {
        BusinessDelegate.inviaMail();
    }

    static ListTableModel ottieniListaClienti() {
        return BusinessDelegate.ottieniListaClienti();
    }
    public static ListTableModel ottieniListaClienti(ArrayList<Criteria> listaCriteri) {
        return BusinessDelegate.ottieniListaClienti(listaCriteri);
    }
    

    static ListTableModel ottieniListaFornitori() {
        return BusinessDelegate.ottieniListaFornitori();
    }

    static ListTableModel ottieniListaOrdiniclienti() {
        return BusinessDelegate.ottieniListaOrdiniclienti();
    }

    public static ArrayList<Property> ottieniListaProprietaCF(String clienteFornitore) {
        return BusinessDelegate.ottieniListaProprietaCF(clienteFornitore);
    }

    static Integer ottieniNuovo_nFattura() {
        return BusinessDelegate.ottieniNuovo_nFattura();
    }

    
}
